package fr.efrei.paumier.common.time;

import java.time.Clock;

import fr.efrei.paumier.common.time.Event;

public class RegisterEvent{
	private Clock horloge;
	private Clock trigger;
	private Event event;
	
	public RegisterEvent(Event event) {
		super();
		this.horloge = Clock.systemUTC();
		this.trigger = Clock.tick(this.horloge, event.getBaseDuration());
		this.event = event;
	}
	
	public Clock getHorloge() {
		return this.horloge;
	}

	public void setHorloge(Clock horloge) {
		this.horloge = horloge;
	}
	
	public Clock getTrigger() {
		return this.trigger;
	}
	
	public void setTrigger(Clock trigger) {
		this.trigger = trigger;
	}

	public Event getEvent() {
		return event;
	}

	public void setEvent(Event event) {
		this.event = event;
	}
}
